Making two columns
am 15.08.2009 20:26:05 von Ron Piggott
------=_NextPart_000_001D_01CA1DB4.530ED440
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am needing help changing this code so the result of the mySQL query =
will display in two columns with the CSS tags around it. The number of =
records being displayed is based on the mySQL query and will increase as =
more poetry is added to the site.
echo "
\r\n";
echo "
\r\n";
$i=3D0;
while ( $i < $number_of_records ) {
echo "-
stripslashes(mysql_result($poems_result,$i,"pieces.reference ")) . "/\">" =
.. stripslashes(mysql_result($poems_result,$i,"pieces.title_of_ piece")) . =
" \r\n";
++$i;
}
echo "
\r\n";
echo "
\r\n"
------=_NextPart_000_001D_01CA1DB4.530ED440--
Re: Making two columns
am 16.08.2009 00:45:10 von Phpster
On Aug 15, 2009, at 2:26 PM, "Ron Piggott"
wrote:
>
>
> I am needing help changing this code so the result of the mySQL
> query will display in two columns with the CSS tags around it. The
> number of records being displayed is based on the mySQL query and
> will increase as more poetry is added to the site.
>
> echo "\r\n";
> echo "
\r\n";
>
> $i=0;
> while ( $i < $number_of_records ) {
> echo "-
> poetry/" . stripslashes(mysql_result($poems_result,
> $i,"pieces.reference")) . "/\">" . stripslashes(mysql_result
> ($poems_result,$i,"pieces.title_of_piece")) . " \r\n";
> ++$i;
> }
>
> echo "
\r\n";
> echo "
\r\n"
Divide the total number of rows in 2 and create a second div when the
halfway point is reached
Bastien
Sent from my iPod
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php